package com.hjm.project.team.detailed.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.hjm.project.team.detailed.mapper.TeamYlDetailedMapper;
import com.hjm.project.team.detailed.domain.TeamYlDetailed;
import com.hjm.project.team.detailed.service.ITeamYlDetailedService;
import com.hjm.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 引流相关奖励明细Service业务层处理
 * 
 * @author maker-platform
 * @date 2021-04-15
 */
@Service
public class TeamYlDetailedServiceImpl implements ITeamYlDetailedService 
{
    @Resource
    private TeamYlDetailedMapper teamYlDetailedMapper;

    /**
     * 查询引流相关奖励明细
     * 
     * @param id 引流相关奖励明细ID
     * @return 引流相关奖励明细
     */
    @Override
    public TeamYlDetailed selectTeamYlDetailedById(Integer id)
    {
        return teamYlDetailedMapper.selectTeamYlDetailedById(id);
    }

    /**
     * 查询引流相关奖励明细列表
     * 
     * @param teamYlDetailed 引流相关奖励明细
     * @return 引流相关奖励明细
     */
    @Override
    public List<TeamYlDetailed> selectTeamYlDetailedList(TeamYlDetailed teamYlDetailed)
    {
        return teamYlDetailedMapper.selectTeamYlDetailedList(teamYlDetailed);
    }

    /**
     * 新增引流相关奖励明细
     * 
     * @param teamYlDetailed 引流相关奖励明细
     * @return 结果
     */
    @Override
    public int insertTeamYlDetailed(TeamYlDetailed teamYlDetailed)
    {
        return teamYlDetailedMapper.insertTeamYlDetailed(teamYlDetailed);
    }

    /**
     * 修改引流相关奖励明细
     * 
     * @param teamYlDetailed 引流相关奖励明细
     * @return 结果
     */
    @Override
    public int updateTeamYlDetailed(TeamYlDetailed teamYlDetailed)
    {
        return teamYlDetailedMapper.updateTeamYlDetailed(teamYlDetailed);
    }

    /**
     * 删除引流相关奖励明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTeamYlDetailedByIds(String ids)
    {
        return teamYlDetailedMapper.deleteTeamYlDetailedByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除引流相关奖励明细信息
     * 
     * @param id 引流相关奖励明细ID
     * @return 结果
     */
    @Override
    public int deleteTeamYlDetailedById(Integer id)
    {
        return teamYlDetailedMapper.deleteTeamYlDetailedById(id);
    }
}
